//
//  Header.h
//  TKIM_标准版
//
//  Created by liupm on 16/1/15.
//  Copyright © 2016年 liupm. All rights reserved.
//
@protocol TKIMUserGroupDBProtocol <NSObject>
@optional

/**
 *  @Author lpm, 15-10-29 14:10:24
 *
 *  @brief  缓存一条分组数据
 */
-(void)insertUserGroup:(TKIMUserGroup *)group;


/**
 *  @Author lpm, 15-10-29 14:10:24
 *
 *  @brief  缓存多条分组数据
 */
-(void)insertUserGroups:(NSMutableArray *)groups;


/**
 *  @Author lpm, 15-10-29 15:10:45
 *
 *  @brief  删除一条分组数据
 *
 *  @param obj
 */
-(void)removeUserGroup:(TKIMUserGroup *)group;


/**
 *  @Author lpm, 15-10-29 15:10:45
 *
 *  @brief  删除多条一条分组数据
 *
 *  @param obj
 */
-(void)removeUserGroups:(NSMutableArray *)groups;


/**
 *  @Author lpm, 15-10-29 15:10:46
 *
 *  @brief  更新一条分组数据
 *
 *  @param object
 */
-(void)updateUserGroup:(TKIMUserGroup *)group;


/**
 *  @Author lpm, 15-10-29 15:10:46
 *
 *  @brief  更新多条分组数据
 *
 *  @param object
 */
-(void)updateUserGroups:(NSMutableArray *)groups;


/**
 *  @Author lpm, 15-10-29 15:10:25
 *
 *  @brief  查询一个分组结果集
 *
 *  @param key
 *
 *  @return
 */
-(NSMutableArray *)queryUserGroup ;


/**
 *  @Author lpm, 15-10-29 15:10:25
 *
 *  @brief  查询一个分组
 *
 *  @param key
 *
 *  @return
 */
-(TKIMUserGroup *)queryAUserGroupBy:(NSString *)groupId ;


/**
 *  @Author lpm, 15-10-29 15:10:25
 *
 *  @brief  查询分组
 *
 *  @param key
 *
 *  @return
 */
-(NSMutableArray *)queryGroupsByName:(NSString *)groupName ;

@end